<template>
    <div id="Post">
        <button @click="getData">+axios</button>
    </div>
</template>

<script>
    //import axios from 'axios'
    import {get} from '../api/http'
    export default {
        name: "Post",

        methods:{
            getData(){

                // axios.get("https://www.baidu.com").then((resp)=>{
                //
                //     console.log(resp)
                // })
                get("/").then(resp=>{
                    console.log(resp)
                })
            }
        }
    }
</script>

<style scoped>

</style>